'use strict'

// https://github.com/zzzs/egg-router-group

module.exports = app => {
  const { router, controller, config, middleware } = app

  router.group({ prefix: '/api/v1' }, router => {
    require('./router/api')(Object.assign({}, app, { router }))
  })

  router.group({ prefix: '/api/admin' }, router => {
    require('./router/admin')(Object.assign({}, app, { router }))
  })
}

